package homework0707;

import jk.ToolService;

public class Application {
    public static void main(String[] args) {
        ToolService timeObj = new TimeObj();
        DateElement dateElement = new DateElement();
        dateElement.setYear(2000);
        dateElement.setMonth(8);
        dateElement.setDay(1);
        System.out.println(timeObj.timeUtil(dateElement));

        ToolService stringObj = new StringObj();
        StringElement stringElement = new StringElement();
        stringElement.setStr("MyName");
        stringElement.setType(0);
        System.out.println(stringObj.transformUtil(stringElement));
        stringElement.setStr("my_name");
        stringElement.setType(1);
        System.out.println(stringObj.transformUtil(stringElement));

        ToolService doubleObj = new DoubleObj();
        System.out.println(doubleObj.transformUtil1(1234567.03));
    }

}
